﻿using System;
using System.Linq;
using System.Collections.Generic;
using StockExchanger.Models;


namespace StockExchanger.Models
{

    public interface IBuySellRepository {

//        aspnet_User aspnet_User { get; set; }
        aspnet_User aspnet_User1 { get; set; }

        IQueryable<BuySell> FindAllStock();
        IQueryable<BuySell> FindByLocation(float latitude, float longitude);
        IQueryable<BuySell> FindUpcomingStock();
        BuySell GetBuySell(int id);
        IList<BuySell> ListAll();


        void Add(BuySell BuySell);
        void Delete(BuySell BuySell);
        
        void Save();

        aspnet_User GetUser(string p);
    }
}
